import os,configparser
dangqian_path = os.path.dirname(__file__)
config_path = os.path.join(dangqian_path,'conf/config.ini')
xxx = configparser.ConfigParser()  # 创建对象
xxx.read(config_path, encoding='utf-8')
print(xxx.sections())